package com.shenhua.kunpeng.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * 从库设置，读写分离，写主库，读 主库对应的从库
 */
@Configuration
@ConfigurationProperties(
        prefix = "hikari.slave"
)
@Data
public class HikariSlaveCofig {

    private String driverClassName;
    private String url;
    private String username;
    private String password;
    private int minimumIdle;
    private int idleTimeout;
    private int maximumPoolSize;
    private int maxLifetime;
    private long connectionTimeout;
    private String connectionTestQuery;

}
